import { service } from "@/utils/request";

/**
 * 
 * @param {商用-待入库列表查询};
 * @param {列表查询}
 * @returns 
 * 
 */
export const getList = (data: any) => {
  return service({
    url: '/basic-data/common/archives/list',
    method: 'post',
    data
  })
};

/**
 * 
 * @param {商用-(待入库,待出库,档案管理)};
 * @param {导出}
 * @returns 
 * 
 */
export const downloadTable = (data: object) => {
  return service({
    url: '/basic-data/wait/lib/exportExcel/excel',
    method: 'post',
    data,
    responseType: 'blob'
  })
};

/**
 * 
 * @param {商用-待入库};
 * @param {根据盒号查询数据}
 * @returns 
 * 
 */
export const boxIdList = (data: object) => {
  return service({
    url: '/basic-data/comm/case/dataDetails',
    method: 'post',
    data
  })
};

/**
 * 
 * @param {商用-(待入库,待出库,档案记录)};
 * @param {档案操作记录}
 * @returns 
 * 
 */
export const filesOperationRecord = (data: object) => {
  return service({
    url: '/retail/change/log',
    method: 'post',
    data
  })
};
